package com.lyl.momanapp.activity;

import android.content.Intent;
import android.view.View;

import com.lyl.momanapp.R;
import com.lyl.momanapp.activity.help.Help1Acitivty;
import com.lyl.momanapp.activity.help.Help2Activity;
import com.lyl.momanapp.activity.help.Help3Acitivty;
import com.lyl.momanapp.util.view.MyBaseActivity;

/**
 * Created by lyl on 2017/11/14.
 */

public class HelpActivity extends MyBaseActivity
{
    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.fanhui:{
                finish();
            }
            break;
            case R.id.zhuye: {

                startActivity(new Intent(HelpActivity.this, MainActivity.class));
                finish();
            }
            break;
            case R.id.help_1:{
                startActivity(new Intent(HelpActivity.this, Help1Acitivty.class));

            }
            break;
            case R.id.help_2:{
                startActivity(new Intent(HelpActivity.this, Help2Activity.class));

            }
            break;
            case R.id.help_3:{
                startActivity(new Intent(HelpActivity.this, Help3Acitivty.class));

            }
            break;
        }
    }

    @Override
    public void initUI() {
        setContentView(R.layout.activity_help);
        findViewById(R.id.fanhui).setOnClickListener(this);
        findViewById(R.id.zhuye).setOnClickListener(this);
        findViewById(R.id.help_1).setOnClickListener(this);
        findViewById(R.id.help_2).setOnClickListener(this);
        findViewById(R.id.help_3).setOnClickListener(this);
    }

    @Override
    public void initData() {

    }

    @Override
    public void addListeners() {

    }
}
